<?php
//including all function-files

global $conf;

$db = new dbquery;

$db->cache('functions');
$db->query("SELECT * FROM $conf[prefix]functions WHERE function='external' or function=1") or $db->err(__FILE__, __LINE__);

while($f = $db->fetch_object()) {
	if($f->function==1)
	  include_once("includes/functions/".$f->name.".php");
	else
	  include_once("includes/functions/".$f->name."-external.php");
}
?>
